package vn.elca.training.important_classes_excercise;

import java.util.Arrays;
import java.util.List;

public class Question1 {
	public static void main(String[] args) {
		String carBrand = "BMW Kia-Forte Toyota-Camry Lexus Honda-Civic Audi";
		String[] carArray = carBrand.split(" ");    // Answer line 1
		List<String> carList = Arrays.asList(carArray);    // Answer line 2
		for (int i = 0; i < carList.size(); i++) {
			System.out.print("[" + carList.get(i) + "] ");
		}
	}

}
